<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <div class="box">
                 <h3>登录页面</h3>
        <input type="text" id="user"><br>
        <input type="password" id="pass"><br>
        <button id="but">登录</button>
    </div>

</body>

</html>
<script>
   
    class Login{
        constructor(obj){
            this.obj = obj
        }
        $(e){return document.querySelector(e)}
        //添加事件
        isevent(dom){
            dom.onclick=function(e){
                //返回当前点击元素
                return e.target
            }
        }
        port(obj){
        
        }
    }
</script>